using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace FreeSqlLearn {

	[JsonObject(MemberSerialization.OptIn), Table(DisableSyncStructure = true)]
	public partial class ygc_ry {

		[JsonProperty, Column(IsPrimary = true)]
		public Guid id { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string beizhu { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string bh { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string dz { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string keshi { get; set; }

		[JsonProperty]
		public DateTime? LastLoginTime { get; set; }

		[JsonProperty, Column(CanInsert = false)]
		public int LoginErrorCount { get; set; } = 0;

		[JsonProperty, Column(StringLength = 50)]
		public string lxdh { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string name { get; set; }

		[JsonProperty]
		public Guid? roleId { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string sfzh { get; set; }

		[JsonProperty, Column(StringLength = 50, CanInsert = false)]
		public string userName { get; set; } = "";

		[JsonProperty, Column(StringLength = 50, CanInsert = false)]
		public string userPass { get; set; } = "";

		[JsonProperty, Column(StringLength = 50)]
		public string xb { get; set; }

		[JsonProperty, Column(StringLength = 50)]
		public string zhiwu { get; set; }

	}

}
